//
//  TXHRrettyRulerOM.h
//  AngelSound
//
//  Created by Michael on 16/4/16.
//  Copyright © 2016年 Jumper. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import "TXHRulerScrollViewOM.h"
@class TXHRrettyRulerOM;

typedef enum {
    RulerDirectionType_Up,
    RulerDirectionType_Down,
} RulerDirectionType;

@protocol TXHRrettyRulerDelegate <NSObject>

@optional

- (void)rulerDidScroll:(TXHRrettyRulerOM *)ruler withValue:(CGFloat)rulerValue;

@end

@interface TXHRrettyRulerOM : UIView <UIScrollViewDelegate>

@property (nonatomic, weak) id <TXHRrettyRulerDelegate> rulerDelegate;

@property (nonatomic, strong) TXHRulerScrollViewOM * rulerScrollView;

//@property (nonatomic, weak) id <TXHRrettyRulerDelegateUp> rulerDeletateUp;

/*
 *  绘制刻度尺
 *  @param mix          最小值
 *  @param max          最大值
 *  @param currentValue 直尺初始化的刻度值
 *  @param direction    方向
 */
- (void)showRulerScrollViewWithMix:(NSUInteger)mix
                               Max:(NSUInteger)max
                      currentValue:(CGFloat)currentValue
                    rulerDirection:(RulerDirectionType)direction;

@end

